Join(TOuter, TInner, TKey, TResult) Method (ParallelQuery(TOuter), IEnumerable(TInner), Func(TOuter, TKey), Func(TInner, TKey), Func(TOuter, TInner, TResult))

Task Parallel System.Threading

This Join overload should never be called. This method is marked as obsolete and always throws NotSupportedException when invoked.

Namespace:  System.Linq
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
<ObsoleteAttribute("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")> _
Public Shared Function Join(Of TOuter, TInner, TKey, TResult) ( _
	outer As ParallelQuery(Of TOuter), _
	inner As IEnumerable(Of TInner), _
	outerKeySelector As Func(Of TOuter, TKey), _
	innerKeySelector As Func(Of TInner, TKey), _
	resultSelector As Func(Of TOuter, TInner, TResult) _
) As ParallelQuery(Of TResult)
C#
[ObsoleteAttribute("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static ParallelQuery<TResult> Join<TOuter, TInner, TKey, TResult>(
	ParallelQuery<TOuter> outer,
	IEnumerable<TInner> inner,
	Func<TOuter, TKey> outerKeySelector,
	Func<TInner, TKey> innerKeySelector,
	Func<TOuter, TInner, TResult> resultSelector
)

Parameters

outer
Type: System.Linq..::.ParallelQuery<(Of <(TOuter>)>)
This parameter is not used.
inner
Type: System.Collections.Generic..::.IEnumerable<(Of <(TInner>)>)
This parameter is not used.
outerKeySelector
Type: System..::.Func<(Of <(TOuter, TKey>)>)
This parameter is not used.
innerKeySelector
Type: System..::.Func<(Of <(TInner, TKey>)>)
This parameter is not used.
resultSelector
Type: System..::.Func<(Of <(TOuter, TInner, TResult>)>)
This parameter is not used.

Type Parameters

TOuter
This type parameter is not used.
TInner
This type parameter is not used.
TKey
This type parameter is not used.
TResult
This type parameter is not used.

Return Value

This overload always throws a NotSupportedException.

Remarks

This overload exists to disallow usage Join with a left data source of type ParallelQuery<(Of <(TSource>)>) and a right data source of type IEnumerable<(Of <(T>)>). Otherwise, the Join operator would appear to be binding to the parallel implementation, but would in reality bind to the sequential implementation.

Exceptions

ExceptionCondition
System..::.NotSupportedExceptionThe exception that occurs when this method is called.

See Also